<HTML><HEAD><TITLE>apply_to_list(++KeyList, +Map, ?ValueList)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(m_map)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>apply_to_list(++KeyList, +Map, ?ValueList)</H1>
Map a list of keys to their corresponding values.
<DL>
<DT><EM>KeyList</EM></DT>
<DD>A list of keys to map
</DD>
<DT><EM>Map</EM></DT>
<DD>The map to apply
</DD>
<DT><EM>ValueList</EM></DT>
<DD>The list of corresponding values
</DD>
</DL>
<H2>Description</H2>
	<P>
	This predicate applies the map Map to a list of keys KeyList to
	produce the list of values ValueList; i.e. it maps a list of keys
	to their corresponding values.  If one of the keys in KeyList is
	not found in Map, then the predicate aborts witha runtime error.
	</P>
	<P>
	This predicate should only be called with maps created by other
	predicates from the map module.
	</P>
	
<H3>Fail Conditions</H3>
Fails if ValueList does not unify with the list of values corresponding to KeyList.
<H3>Resatisfiable</H3>
no
<H2>See Also</H2>
<A HREF="../../lib_public/m_map/lookup-3.html">lookup / 3</A>
</BODY></HTML>
